package com.nq.stock.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.util.Date;
import java.math.BigDecimal;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: st_stock_ticker
 * @Author: jeecg-boot
 * @Date:   2024-05-30
 * @Version: V1.0
 */
@Data
@TableName("st_stock_ticker")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StStockTicker implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**市场*/
	@Excel(name = "市场", width = 15)
	private String market;
	/**股票代码*/
	@Excel(name = "股票代码", width = 15)
    private String code;
	/**时间戳*/
	@Excel(name = "时间戳", width = 15)
    private BigInteger tick;
	/**最新价*/
	@Excel(name = "最新价", width = 15)
    private BigDecimal price;
	/**当前交易量*/
	@Excel(name = "当前交易量", width = 15)
    private Integer nv;
	/**加权平均价格*/
	@Excel(name = "加权平均价格", width = 15)
    private BigDecimal vmap;
	/**成交量*/
	@Excel(name = "成交量", width = 15)
    private Integer volume;
	/**开盘价*/
	@Excel(name = "开盘价", width = 15)
	@TableField(value = "`open`")
    private BigDecimal open;
	/**最高价*/
	@Excel(name = "最高价", width = 15)
    private BigDecimal high;
	/**最低价*/
	@Excel(name = "最低价", width = 15)
    private BigDecimal low;
	/**昨日收盘价*/
	@Excel(name = "昨日收盘价", width = 15)
	@TableField(value = "`close`")
    private BigDecimal close;
	/**昨收价*/
	@Excel(name = "昨收价", width = 15)
    private BigDecimal ys;
	/**位置*/
	@Excel(name = "位置", width = 15)
    private Integer position;
	/**成交额*/
	@Excel(name = "成交额", width = 15)
    private Double amount;
	/**买1价*/
	@Excel(name = "买1价", width = 15)
    private String b1;
	/**买1量*/
	@Excel(name = "买1量", width = 15)
    private String b1v;
	/**卖1价*/
	@Excel(name = "卖1价", width = 15)
    private String s1;
	/**卖1量*/
	@Excel(name = "卖1量", width = 15)
    private String s1v;
	/**股票名称*/
	@Excel(name = "股票名称", width = 15)
    private String name;
	/**一般指股票的INE码*/
	@Excel(name = "一般指股票的INE码", width = 15)
    private String varieties;
	/**股票入库日期*/
	@Excel(name = "股票入库日期", width = 15)
    private String t;
	/**合同*/
	@Excel(name = "合同", width = 15)
    private String contract;
	/**涨跌值变化*/
	@Excel(name = "涨跌值变化", width = 15)
	@TableField(value = "`change`")
    private BigDecimal change;
	/**涨跌幅百分比*/
	@Excel(name = "涨跌幅百分比", width = 15)
	@TableField(value = "`up`")
    private BigDecimal up;
	/**振幅*/
	@Excel(name = "振幅", width = 15)
	@TableField(value = "`amplitude`")
    private BigDecimal amplitude;
	/**当前交易方向*/
	@Excel(name = "当前交易方向", width = 15)
	@TableField(value = "`mrta`")
    private Integer mrta;
	/**逐笔成交：时间，价格，方向，量，编号；*/
	@Excel(name = "逐笔成交：时间，价格，方向，量，编号；", width = 15)
	@TableField(value = "`dealtransaction`")
    private String dealtransaction;
	private Date updateTime;
}
